package edu.ustb.service;

import edu.ustb.dao.UserDAO;

public class UserServiceImpl implements UserService {

	UserDAO userDAO ;
	
	@Override
	public boolean login(String username, String password) {
		return userDAO.login(username, password);
	}

	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}

	@Override
	public void addUser(String username, String password) {
		userDAO.addUser(username, password);
	}

	@Override
	public void delUser(int id) {
		userDAO.delUser(id);
	}
	
	

}
